Skip to content

feat: Add per-tick callback to NetworkRigidBody - #646

Open
realpoke wants to merge 1 commit into
foxssake:mainfrom
realpoke:feat/physics-before-tick-callback
Open

feat: Add per-tick callback to NetworkRigidBody#646
realpoke wants to merge 1 commit into
foxssake:mainfrom
realpoke:feat/physics-before-tick-callback

Conversation

@realpoke

@realpoke realpoke commented Sep 4, 2026

Copy link
Copy Markdown

Adds _before_physics_rollback_tick to NetworkRigidBody2D and NetworkRigidBody3D.
The physics driver calls it once per network tick, before any sub-step, with the full tick delta, handy for logic that shouldn't re-run per sub-step, like syncing remote state or holding bodies on stale input.

It's a no-op by default, so behavior is unchanged unless overridden.

Drivers call _before_physics_rollback_tick once per network tick,
before any sub-step, with the full tick delta. Useful for logic that
must not be re-run per sub-step, e.g. syncing remote state or holding
bodies on stale input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant